package org.dromara.demo.domain.bo;

import org.dromara.demo.domain.JsExecuteLog;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 执行过程业务对象 js_execute_log
 *
 * @author zhu
 * @date 2025-01-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JsExecuteLog.class, reverseConvertGenerate = false)
public class JsExecuteLogBo extends BaseEntity {

    /**
     * 执行日志id
     */
    @NotNull(message = "执行日志id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 执行id
     */
    @NotNull(message = "执行id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long executeId;

    /**
     * Select正确，CloseBold失败
     */
    @NotBlank(message = "Select正确，CloseBold失败不能为空", groups = { AddGroup.class, EditGroup.class })
    private String icon;

    /**
     * #0bbd87成功，#d73a49失败
     */
    @NotBlank(message = "#0bbd87成功，#d73a49失败不能为空", groups = { AddGroup.class, EditGroup.class })
    private String color;

    /**
     * 消息
     */
    @NotBlank(message = "消息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String message;

    /**
     * 状态0失败1成功
     */
    @NotBlank(message = "状态0失败1成功不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
